package com.suke.czx.modules.reward.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.suke.czx.modules.reward.entity.Reward;
import com.suke.czx.modules.reward.entity.RewardSearchBo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 应用模块名称: 奖惩
 * 代码描述: 奖惩持久层
 * copyright: AUZAR ALL RIGHTS RESERVED
 * company: AUZAR
 *
 * @author: 颜米晨
 * @date: 2021/09/03 0:42
 */
public interface RewardMapper extends BaseMapper<Reward> {

    /**
     * 分页查询奖惩列表
     * @param rewardSearchBo 查询BO
     * @return 奖惩数据集
     */
    List<Reward> pageRewardList(RewardSearchBo rewardSearchBo);

    /**
     * 删除奖惩
     * @param rewardId 奖惩编码
     * @param userId 操作者编码
     */
    void updateDelReward(@Param("rewardId") Long rewardId, @Param("userId") Long userId);

}
